<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>首页</title>
  <link rel="stylesheet"  href="/thinkphp1/Public/Css/admin.css"/>
</head>
<body>
      <div class="top">
          <div class="t_main w mt">
            <span><b>WE TEAM</b>商城后台管理系统</span>
            <div class="t_right fr">
              欢迎
              <?php echo $_SESSION['admin']['name']; ?>
              <a href="<?php echo U('Login/loginout');?>">❤退出❤</a>
            </div>
          </div>
      </div>
      <div class="main">
        <div class="main_left fl">
          <ul>
            <a href="<?php echo U('Goods/Index');?>">
              <li>
                <span class="lm_ico"></span>
                <b>商品管理</b>
                <span class="left_ico"></span>  
              </li>
              </a>
              <a href="<?php echo U('Category/Index');?>">
                <li>
                  <span class="lm_ico"></span>
                  <b>分类管理</b>
                  <span class="left_ico"></span>
                </li>
              </a>
              <a href="<?php echo U('User/index');?>">
                <li>
                  <span class="lm_ico"></span>
                  <b>用户管理</b>
                  <span class="left_ico"></span>
                </li>
              </a>
              <a href="<?php echo U('Order/index');?>">
                <li>
                  <span class="lm_ico"></span>
                  <b>订单管理</b>
                  <span class="left_ico"></span>
                </li>
              </a>
              <a href="<?php echo U('Arguments/index');?>">
                <li>
                  <span class="lm_ico"></span>
                  <b>评论管理</b>
                  <span class="left_ico"></span>
                </li>
              </a>
              <a href="<?php echo U('Addver/index');?>">
                <li>
                  <span class="lm_ico"></span>
                  <b>广告管理</b>
                  <span class="left_ico"></span>
                </li>
              </a>
            </ul>
          </div>
          <div class="main_right fr">
        <div class="main_m">
            
	<div class="agoods_nav">
		<span>订单管理</span>
	</div>
	<table class="table" border="1" cellpadding="5" cellspacing="0" align="center">
		<tr bgcolor="#ccc">
			<td>订单号</td>
			<td>评论商品</td>
			<td>评论者</td>
			<td>评论内容</td>
			<td>是否显示</td>
			<td>操作</td>
		</tr>
		<?php if(is_array($list)): foreach($list as $key=>$val): ?><tr>
			<td><?php echo ($val['olb']); ?></td>
			<td><?php echo ($val['gname']); ?><img src="/thinkphp1<?php echo ($val['giname']); ?>"></td>
			<td><?php echo ($val['uname']); ?></td>
			<td><?php echo ($val['text']); ?></td>	
			<td>
				<?php if($val['status'] == 1): ?><a href="<?php echo U('Arguments/status',['id'=>$val['id']]);?>">显示</a>				
				<?php else: ?>
				<a href="<?php echo U('Arguments/status',['id'=>$val['id']]);?>">不显示</a><?php endif; ?>	
			</td>
			<td>
				<a href="<?php echo U('Arguments/reply',['id'=>$val['id']]);?>">回复</a>
			</td>
		</tr><?php endforeach; endif; ?>
		<tr>
			<th colspan="6"  style="text-align:center;"><?php echo ($Page); ?></th>
		</tr>
	</table>

        </div>  
      </div>
        </div>
        <div id="footer">
          
        </div>
        </body>
      </html>